import java.util.Scanner;
public class panduan{
	public static void main(String args[]) {
		System.out.print("请输入一个数：");
		Scanner reader = new Scanner(System.in);
		int m = reader.nextInt();
		int sum = m;
		int s = 0;
		while(m>0){
			s=s*10+m%10;
			m=m/10;
		}
		if(s==sum) System.out.println("该数是回文数");
		else System.out.println("该数不是回文数");
	}
}
